/*
 * @Author: 
 * @Date: 2019-11-23 14:12:19
 * @Last Modified by: 
 * @Last Modified time: 2022-03-19 14:54:33
 */
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { Provider } from 'react-redux';
import store from '@/store';
import { renderRoutes } from '@/router';
import routes from '@/router/config';
import config from '@/config';
import Login from './modules/key/login/index'
import Nomatch from '@/pages/nomatch'
class App extends Component {
  componentDidMount() {
    console.log(routes, 'routes', renderRoutes(routes))
  }
  render() {
    return (
      <Provider store={store}>
        <Router basename={config.baseRoute}>
          <Switch>
          <Route path="/login" exact component={Login} />
            {renderRoutes(routes)}
          <Route    component={Nomatch} />
            
          </Switch>
        </Router>
      </Provider>
    );
  }
}

export default App;
